#pragma once
#include "stdafx.h"
#include "resource.h"
#include "_GraphControl.h"
#include <gl\GL.h>
#include <gl\GLU.h>

// _GraphDialog dialog

class _GraphDialog : public CDialogEx
{
	DECLARE_DYNAMIC(_GraphDialog)

public:
	_GraphDialog::_GraphDialog(CWnd* pParent = NULL, CRect Rect = NULL, _FGHandle DialogHandle = 0);

	virtual ~_GraphDialog();

	// Dialog Data
	enum { IDD = IDD_FLEX_GRAPH_INTERNAL_GRAPH_DIALOG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

	// GraphControl 
	CWnd* m_pParentWnd;
	CRect m_ControlRect;
	_GraphControl m_GraphControl;
	_FGHandle m_DialogHandle;
	void setDialogHandle(_FGHandle Handle){ m_DialogHandle = Handle; m_GraphControl.setDialogHandle(Handle);};
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	_GraphControl* getGraphControl();
	afx_msg void OnMouseMove(UINT nFlags, CPoint point);
	afx_msg BOOL OnMouseWheel(UINT nFlags, short zDelta, CPoint pt);
	
};

